Skip to content

Conversation

@AnthonyLatsis
Copy link
Collaborator

@AnthonyLatsis AnthonyLatsis commented May 28, 2025

HAVE_SYS_RESOURCE_H was removed in llvm/llvm-project#123288, so this header is no longer included at this particular location on rebranch, which breaks the Linux build, where it is not transitively included either.

Use the same condition as in the use site (getChildrenMaxResidentSetSize) instead.

Also, don't wrap HAVE_GETRUSAGE in defined() in case it does get defined to 0.

@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please smoke test

`HAVE_SYS_RESOURCE_H` was removed in
llvm/llvm-project#123288, so this header is no
longer included at this particular location on rebranch, which breaks
the Linux build, where it is not transitively included either.

Use the same condition as in the use site
(`getChildrenMaxResidentSetSize`) instead.

Also, don't wrap `HAVE_GETRUSAGE` in `defined()` in case it does get
defined to 0.
@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please smoke test

@AnthonyLatsis AnthonyLatsis enabled auto-merge May 28, 2025 23:07
@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please smoke test Linux

@AnthonyLatsis AnthonyLatsis merged commit 9753d23 into swiftlang:main May 29, 2025
3 checks passed
@AnthonyLatsis AnthonyLatsis deleted the neotrygon branch May 29, 2025 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants